@extends('layouts.app')

@section('content')

    <?php
    if(!isset($request))
        $request = request()->all();
    ?>
    <section class="content-header">
        <h1 class="pull-left">用户</h1>
        <div class="" style="clear: both">
            {!! Form::open(['route' => 'users.index','method'=>'GET']) !!}
            {{--{!! Form::label('', '选择订单状态:') !!}--}}
            <input type="text" name="name" value="{{ (isset($request['name'])&&$request['name'])?$request['name']:'' }}" placeholder="搜索名称">
            {!! Form::submit('搜索', ['class' => 'btn btn-primary']) !!}
            {!! Form::close() !!}
        </div>
    </section>
    <div class="content">
        <div class="clearfix"></div>

        @include('flash::message')

        <div class="clearfix"></div>
        <div class="box box-primary">
            <div class="box-body">
                    @include('users.table')
            </div>
        </div>
    </div>
    {{ $users->appends($request)->links() }}
@endsection

